import { defineStore } from "pinia";

export const useTabsStore = defineStore('tabsStore', {
    state: () => ({
        tabMenus: [
            {
                icon: "yanfashujuyingyong",
                title: '首页',
                name: 'Home',
                path: '/'
            }
        ],  
        activeTab: 'Home'
    }) ,
    getters: {},
    actions: {
        setTabMenus(tabMenus){
            this.tabMenus = tabMenus;
        },
        setActiveTab(activeTab){
            this.activeTab = activeTab;
        }
    }
});
